number_speaker object

This method will speak a number between -999999999 and 999999999, and wait until the number is fully read before returning.

int speak_wait(int the_number)

Parameters:
the_number
The number to speak.

Return value:
0 on success, -1 on failure.

Remarks:
The speak_wait method will look for sounds in accordance with the values stored in the prepend and append properties, and ascertain the best sound files to load by performing a number of searches based on the number at hand.

The speak_wait function waits until the number is fully spoken before returning. This means that script execution pauses throughout the entire reading. If you wish to avoid this, use the speak and speak_next methods.

Example:
// Speak a number using speak_wait.

#include "number_speaker.bgt"

void main()
{
number_speaker test;
test.speak_wait(1056);
}